package com.bruce.asurada.assistant;

import dev.langchain4j.service.spring.AiService;
import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;

@AiService(wiringMode = EXPLICIT 
        , chatModel = "openAiChatModel"
        , chatMemoryProvider = "chatMemoryProvider")
public interface Assistant {

    @SystemMessage(fromResource = "promt-template.txt")
    String chat(@MemoryId String memoryId,@UserMessage String message);    

}
